import java.util.Scanner;

public class HomeWork10_01{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        
        System.out.print("please enter 3 itgers: ");
        int[] arr = new int[3];
        for(int i = 0; i < 3; i++){
            arr[i] = scan.nextInt();
        }
        sort(arr);
        for(int i = 0; i < 3; i ++){
            System.out.print(arr[i] + " ");
        }
        
    }
    
    public static void sort(int[] arr){
        for(int i = 0; i < arr.length; i++){
            for(int j = i + 1; j < arr.length; j++){
                if(arr[i] > arr[j]){
                    int tmp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = tmp;
                }
            }
        }
    }
}